<template>
    <div class="info">
        <div class="leftBox">
            <div class="avatar">
                <img src='./avatar.png' alt="">
            </div>
            <div class="studentInfo">
              <p class="studentName">张小花</p>
              <p class="grade">七年级二班</p>
              <p class="er-code">学生二维码>></p>
            </div>
        </div>
        <div class="rightBox">
          <span>余额</span><span class='cash' >1089.00</span><span>元</span>
        </div>
    </div>
</template>
<script>
export default {
  name: 'personalInfo'
}
</script>
<style lang='scss'>
$em-base: 75;
@import '../../common/mixin/_bourbon.scss';
.info {
  display: flex;
  justify-content: space-between;
  height: rem(136px);
  padding-top: rem(66px);
  padding-left: rem(26px);
  padding-right: rem(26px);
  padding-bottom: rem(86px);
  background: linear-gradient(#f8c84c, #f9c132);
  .leftBox {
    display: flex;
    .avatar {
      width: rem(136px);
      height: rem(136px);
      border-radius: 50%;
      background: #fff;
      overflow: hidden;
      img {
        height: rem(110px);
        width: rem(110px);
        border-radius: 50%;
        display: block;
        margin: rem(13px) auto;
      }
    }
    .studentInfo {
      margin-left: rem(40px);
      margin-top: rem(10px);
      color: #fff;
      .studentName {
        font-size: 20px;
      }
      .grade {
        font-size: 16px;
        margin: rem(10px) 0;
      }
      .er-code {
        font-size: 14px;
      }
    }
  }
  .rightBox {
    color: #fff;
    font-size: 16px;
    line-height: rem(100px);
    .cash {
      font-size: 24px;
      color: #fa4739;
      font-weight: bold;
    }
  }
}
</style>
